  /****************************************** 
  * 设置周期
  *******************************************/
  
  //备孕周期
  var periodYjq = "yjq";
  var periodLpq = "lpq";
  var periodPlq = "plq";
  var periodPlr = "plr";
  var periodHtq = "htq";

  //因避孕周期新增
  var periodAqq = "aqq";
  var periodWxq = "wxq";

  function getPeriodBackGroundColor(xAxisDateStr){
        var color;

        if(isYjq(xAxisDateStr))
            color = yjqBackgroundColor;
        else if(isLpq(xAxisDateStr))
            color = lpqBackgroundColor;
        else if(isPlq(xAxisDateStr))
            color = plqBackgroundColor;
        else if(isHtq(xAxisDateStr))
            color = htqBackgroundColor;
        else if(isAqq(xAxisDateStr))
            color = aqqBackgroundColor;
        else if(isWxq(xAxisDateStr))
            color = wxqBackgroundColor;
        else
            color = unknownBackgroundColor;

        return color;
  }
   
    function isYjq(xAxisDateStr){
    	return customerDatePeriodMap.get(xAxisDateStr) == periodYjq;
    }
    
    function isLpq(xAxisDateStr){
    	return customerDatePeriodMap.get(xAxisDateStr) == periodLpq;
    }
    
    function isPlq(xAxisDateStr){
    	return customerDatePeriodMap.get(xAxisDateStr) == periodPlq || customerDatePeriodMap.get(xAxisDateStr) == periodPlr;
    }
    
    function isHtq(xAxisDateStr){
    	return customerDatePeriodMap.get(xAxisDateStr) == periodHtq;
    }

    function isAqq(xAxisDateStr){
        return customerDatePeriodMap.get(xAxisDateStr) == periodAqq;
    }

    function isWxq(xAxisDateStr){
        return customerDatePeriodMap.get(xAxisDateStr) == periodWxq;
    }

